<div>
    <div class="table-responsive">
        <table class="table call-table">
            <tr>
                <th colspan="3">呼叫方</th>
                <th colspan="3">被呼叫方</th>
                <th rowspan="2">订单方是否有订单</th>
                <th rowspan="2">呼叫时间</th>
            </tr>
            <tr>
                <th>名称</th>
                <th>电话</th>
                <th>用户类型</th>
                <th>名称</th>
                <th>电话</th>
                <th>用户类型</th>
            </tr>
            <tr ng-repeat="item in result.list">
                <td>{{item.callUser.userType == 2 ? item.callUser.factoryName : item.callUser.trueName}}</td>
                <td>{{item.callUser.phone}}</td>
                <td>{{item.callUser.userType == 2 ? '工厂方' : '订单方'}}</td>
                <td>{{item.calledUser.userType == 2 ? item.calledUser.factoryName : item.calledUser.trueName}}</td>
                <td>{{item.calledUser.phone}}</td>
                <td>{{item.calledUser.userType == 2 ? '工厂方' : '订单方'}}</td>
                <td>{{item.hasOrder ? '有':'无'}}</td>
                <td>{{item.callTime | date: 'yyyy-MM-dd HH:mm:ss'}}</td>
            </tr>
            <tr ng-if="result.list.length == 0">
                <td class="text-center" colspan="2">没有数据</td>
            </tr>
        </table>
        <div class="pagination-bar" ng-if="result.list.length > 0">
            <uib-pagination
                    total-items="result.page.totalData"
                    ng-model="result.page.currentNo"
                    max-size="2"
                    items-per-page="result.page.everyPage"
                    first-text="第一页"
                    previous-text="上一页"
                    next-text="下一页"
                    last-text="最后页"
                    boundary-links="true"
                    boundary-link-numbers="true"
                    ng-model="result.page.currentNo"
                    ng-change="onPageChange()"
            ></uib-pagination>
        </div>

    </div>
</div>
